package com.yantong.mapper;

import com.yantong.pojo.CentreTerminal;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;

import java.util.Collection;
import java.util.List;

public interface CentreTerminalMapper {
	/**
	 * delete by primary key
	 *
	 * @param id primaryKey
	 * @return deleteCount
	 */
	int deleteByPrimaryKey(Long id);

	/**
	 * insert record to table
	 *
	 * @param record the record
	 * @return insert count
	 */
	int insert(CentreTerminal record);

	/**
	 * insert record to table selective
	 *
	 * @param record the record
	 * @return insert count
	 */
	int insertSelective(CentreTerminal record);

	/**
	 * select by primary key
	 *
	 * @param id primary key
	 * @return object by primary key
	 */
	CentreTerminal selectByPrimaryKey(Long id);

	/**
	 * update record selective
	 *
	 * @param record the updated record
	 * @return update count
	 */
	int updateByPrimaryKeySelective(CentreTerminal record);

	/**
	 * update record
	 *
	 * @param record the updated record
	 * @return update count
	 */
	int updateByPrimaryKey(CentreTerminal record);

	/**
	 * 通过ids查询
	 *
	 * @param idCollection 集合
	 * @return java.util.List<com.jz.centre.domain.CentreTerminal>
	 * @author liaozhaogui
	 * @date 2020/12/21 17:33
	 */
	List<CentreTerminal> selectByIdIn(@Param("idCollection") Collection<Long> idCollection, @Param("centreId") Long centreId);

	/**
	 * 查询列表
	 *
	 * @param centreTerminal 参数信息
	 * @return java.util.List<com.jz.centre.domain.CentreTerminal>
	 * @author liaozhaogui
	 * @date 2020/12/22 11:15
	 */
	List<CentreTerminal> selectByAll(CentreTerminal centreTerminal);

	List<CentreTerminal> listByParam(CentreTerminal centreTerminal, RowBounds rowBounds);

	int selectByCount();

    Long countById(@Param("id") Long id);



}